# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=python-database-knotinfo
_pyname=database_knotinfo
pkgver=2023.5.1
pkgrel=2
arch=(any)
pkgdesc='Snapshot of the complete content of the KnotInfo and LinkInfo databases for Python'
url='https://github.com/soehms/database_knotinfo'
depends=(python)
makedepends=(python-build python-installer python-wheel python-setuptools-scm)
license=(GPL)
source=(https://pypi.io/packages/source/d/$_pyname/$_pyname-$pkgver.tar.gz)
sha256sums=('298882054d5b569cb620a225a02f4dcb22a5628a6b759ff64700ed39ea9a3d96')

build() {
  cd $_pyname-$pkgver
  python -m build --wheel --no-isolation
}

package() {
  cd $_pyname-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
}
